﻿/**************************************************************************
* @file :	
* @brief :  TCP客户端
* @author : C0946639 尹志刚
* @version : 1.0.0.1
* @date :	2025/08/11
***************************************************************************/

#ifndef TCPCLIENTCONTROLLER_H
#define TCPCLIENTCONTROLLER_H

#include <QObject>

#include "Network/networkconfig.h"
#include "Network/asynctcpclient.h"

namespace Core {

	class TcpClientController : public QObject
	{
		Q_OBJECT

	public:
		explicit TcpClientController(QObject *parent = nullptr);
		~TcpClientController();

		/**
		 * @brief  
		 * @param  
		 * @return 
		 */
		bool setConnectToServer(QString strTargetIp, int targetPort);

		/**
		 * @brief	setDisconnectFromServer
		 * @return 
		 */
		void setDisconnectFromServer();

	private:
		Common::AsyncTcpClient *m_pAsyncTcpClient;

	};

}//namespace Core

#endif // TCPCLIENTCONTROLLER_H